<table class="layui-table" style="width:3500px;" id="contentTab">
  <thead>
    <tr>
    	 <th><input type="checkBox" lay-skin="primary" name="headCheckBox" lay-filter="headCheckBox"/></th>
      	 <th>ID</th>
		 <th>数据字段</th>
		 <th>字段名称</th>
		 <th>字段类型</th>
		 <th>显示名称</th>
		 <th>创建时间</th>
    </tr>
  </thead>
    <tbody>
    <tr th:each="item : ${items}" class="edittr">
    	<td><input type="checkBox" lay-skin="primary" name="trCheckBox"/></td>
		<td style="width:150px;"><input type="hidden" name="id" th:value="${item.id}"/>
		<td style="padding-left:0px;padding-right:0px;width:80px;"><input  type="text" name="field" th:value="${item.field}"  lay-verify="required"  autocomplete="off" class="layui-input"></td>
		<td style="padding-left:0px;padding-right:0px;width:80px;"><input  type="text" name="field_name" th:value="${item.field_name}"  lay-verify="required"  autocomplete="off" class="layui-input"></td>
		<td style="background-color:#f3f2f2;padding-left:0px;padding-right:0px;width:120px;">
			<select name="field_type" lay-filter="field_type" >
<!-- 				<option value="">请选择仓库</option> -->
				<option th:each="s : ${fieldTypeList}" th:attr="value=${s.key}" th:text="${s.val}" th:selected="(${item.field_type}==${s.key})"></option>
		    </select>
		</td>
		<td style="padding-left:0px;padding-right:0px;width:80px;"><input  type="text" name="field_name_display" th:value="${item.field_name_display}"  lay-verify="required" placeholder="" autocomplete="off" class="layui-input"></td>
		<td name="ctime" style="background-color:#f3f2f2" th:text="${item.ctime}"></td>
	</tr>
	</tbody>
</table>
<table style="display:none;" id="blankTpl">
<tbody>
<tr class="edittr">
		<td><input type="checkBox" lay-skin="primary" name="trCheckBox"/></td>
		<td style="width:150px;"><input type="hidden" name="table_id" th:value="${tableId}"/></td>
		<td style="padding-left:0px;padding-right:0px;width:80px;"><input  type="text" name="field" required  lay-verify="required" placeholder="字段名" autocomplete="off" class="layui-input"></td>
		<td style="padding-left:0px;padding-right:0px;width:80px;"><input  type="text" name="field_name" required  lay-verify="required" placeholder="字段名称" autocomplete="off" class="layui-input"></td>
		<td style="background-color:#f3f2f2;padding-left:0px;padding-right:0px;width:120px;">
		<select name="field_type" lay-filter="field_type" >
			<option value="">请选择类型</option>
			<option th:each="s : ${fieldTypeList}" th:attr="value=${s.key}" th:text="${s.val}" ></option>
	    </select>
		</td>
		<td style="padding-left:0px;padding-right:0px;width:80px;"><input  type="text" name="field_name_display" required  lay-verify="required" placeholder="显示名称" autocomplete="off" class="layui-input"></td>
		<td name="ctime" style="background-color:#f3f2f2" value=""></td>
	</tr>
	</tbody>
</table>
